﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfDemo.Models.Sys
{
    [Table("SysUser")]
    public class UserEntity : IEntity<string>
    {
        [Key]
        public string F_Id { get; set; }

        [Required]
        [MaxLength(20, ErrorMessage = "名称长度只能在2-20字符之间"), MinLength(2)]
        public string? F_Name { get; set; }

        public string? F_UserName { get; set; }

        public string? F_Phone { get; set; }

        public string? F_Email { get; set; }

        public string? F_Password { get; set; }

        /// <summary>
        /// 是否禁用 0启用，1禁用
        /// </summary>
        public string? F_IsDisabled { get; set; }

        public string? F_RoleId { get; set; }

        [NotMapped]
        public string? F_RoleName { get; set; }

        public string? F_Remark { get; set; }

        public int? F_IsAdmin { get; set; }

        public DateTime? F_CreateTime { get; set;}
    }
}
